package com.lighthouse.note.base.dao;

import com.lighthouse.note.base.domain.KnowledgeNote;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author ysz
 */
@Configuration
public interface KnowledgeNoteRepository extends ElasticsearchRepository<KnowledgeNote, String> {
    /**
     * 查询所有数据
     * @return
     */
    @Override
    List<KnowledgeNote> findAll();

}
